﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Enterprise.Service;

namespace Enterprise.UI.Web
{
    public partial class ChangeLanguage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session != null)
            {
                if (Session["language"] != null)
                {
                    if (Session["language"].ToString() == "zhcn")
                        Session["language"] = "ru";
                    else
                        if (Session["language"].ToString() == "ru")
                            Session["language"] = "zhcn";
                }
                else
                {
                    Response.Write("<a href='login.aspx' style='font-size:14px;text-align:center'>system has updated or login state has time out,please retry login..</a>");
                    Response.End();
                }
            }
            Response.Redirect("index.aspx", true);
        }
    }
}